<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="procedureId" name="procedureId" th:value="${procedures.procedureId}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" th:value="${procedures.name}" class="form-control" type="text">
								</div>
							</div>
														<!--<div class="form-group">
								<label class="col-sm-3 control-label">商品：</label>
								<div class="col-sm-8">
									<select id="productId" name="productId" class="form-control">
									</select>
								</div>
							</div>-->
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">是否启用：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<select id="isOpen" name="isOpen" class="form-control">-->

									<!--</select>-->
								<!--</div>-->
							<!--</div>-->
														<!--<div class="form-group">
								<label class="col-sm-3 control-label">是否绑定所有产品：</label>
									<div class="col-sm-8">
										&lt;!&ndash;<div class="radio-box">&ndash;&gt;
										<label class="radio-inline" id="radioYes">
										</label>
										&lt;!&ndash;</div>&ndash;&gt;

										&lt;!&ndash;<div class="radio-box">&ndash;&gt;
										<label class="radio-inline" id="radioNo">
										</label>
										&lt;!&ndash;</div>&ndash;&gt;
									</div>
							</div>-->
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
									<input type="button" class="btn btn-danger" value="取消"
										   onclick="javascript:
											var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
				                            parent.layer.close(index);">
									</input>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" th:inline="javascript">
//		function setIsOpen() {
//            var isOpen = [[${procedures.isOpen}]]
//            if (isOpen == 0){
//                $("#isOpen").append("<option selected = 'selected' value='0'>未启用 </option>");
//                $("#isOpen").append("<option  value='1'>已启用 </option>");
//            }else{
//                $("#isOpen").append("<option  value='0'>未启用 </option>");
//                $("#isOpen").append("<option selected = 'selected' value='1'>已启用 </option>");
//            }
//        }

       /* function setIsAllProduct() {
            var isAllProduct = [[${procedures.isAllProduct}]]
            if (isAllProduct == 0){
                $("#radioNo").append("<input type='radio' checked='checked' value='0' name='isAllProduct'/>否");
                $("#radioYes").append("<input  type='radio' name='isAllProduct' value='1'/>是");
            }else{
                $("#radioNo").append("<input type='radio' value='0' name='isAllProduct'/>否");
                $("#radioYes").append("<input  type='radio' checked='checked' value='1'  name='isAllProduct'/>是");
            }
        }*/

       /* function getProductId() {
            var productId = [[${procedures.productId}]]
            return productId;
        }*/
	</script>
	<script type="text/javascript" th:src="@{/js/appjs/procedures/procedures/edit.js}" src="/js/appjs/procedures/procedures/edit.js"> </script>

</body>
</html>
